<!DOCTYPE HTML>
<html lang="en-US" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=11; IE=10; IE=9; IE=8; IE=7; IE=EDGE" />
        <title>安装gitbook | GitBook的使用</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 1.5.0">
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
        
    
    
    <link rel="next" href="../新建gitbook/README.html" />
    
    
    <link rel="prev" href="../gitbook的基本安装/安装nodejs.html" />
    

        
    </head>
    <body>
        
        
<link rel="stylesheet" href="../gitbook/style.css">


        
    <div class="book" data-level="1.2" data-basepath=".." data-revision="1425774694445">
    

<div class="book-summary">
    <div class="book-search">
        <input type="text" placeholder="Type to search" class="form-control" />
    </div>
    <ul class="summary">
        
    	
    	
    	

        

        
    
        
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                        <i class="fa fa-check"></i>
                        
                         gitbook的使用
                    </a>
                
            
            
        </li>
    
        
        <li class="chapter " data-level="1" data-path="gitbook的基本安装/README.html">
            
                
                    <a href="../gitbook的基本安装/README.html">
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                         gitbook基本安装
                    </a>
                
            
            
            <ul class="articles">
                
    
        
        <li class="chapter " data-level="1.1" data-path="gitbook的基本安装/安装nodejs.html">
            
                
                    <a href="../gitbook的基本安装/安装nodejs.html">
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                         安装Node.js
                    </a>
                
            
            
        </li>
    
        
        <li class="chapter active" data-level="1.2" data-path="gitbook的基本安装/安装gitbook.html">
            
                
                    <a href="../gitbook的基本安装/安装gitbook.html">
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                         安装gitbook
                    </a>
                
            
            
        </li>
    

            </ul>
            
        </li>
    
        
        <li class="chapter " data-level="2" data-path="新建gitbook/README.html">
            
                
                    <a href="../新建gitbook/README.html">
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                         新建gitbook
                    </a>
                
            
            
            <ul class="articles">
                
    
        
        <li class="chapter " data-level="2.1" data-path="新建gitbook/终端创建.html">
            
                
                    <a href="../新建gitbook/终端创建.html">
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                         终端&amp;文件操作创建
                    </a>
                
            
            
        </li>
    
        
        <li class="chapter " data-level="2.2" data-path="新建gitbook/gitbookEditor创建.html">
            
                
                    <a href="../新建gitbook/gitbookEditor创建.html">
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                         gitbookEditor创建
                    </a>
                
            
            
        </li>
    

            </ul>
            
        </li>
    
        
        <li class="chapter " data-level="3" data-path="gitbook命令行操作/README.html">
            
                
                    <a href="../gitbook命令行操作/README.html">
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                         gitbook命令行操作常用命令
                    </a>
                
            
            
        </li>
    


        
        <li class="divider"></li>
        <li>
            <a href="http://www.gitbook.io/" target="blank" class="gitbook-link">Published using GitBook</a>
        </li>
        
    </ul>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header">
    <!-- Actions Left -->
    <a href="#" class="btn pull-left toggle-summary" aria-label="Toggle summary"><i class="fa fa-align-justify"></i></a>
    <a href="#" class="btn pull-left toggle-search" aria-label="Toggle search"><i class="fa fa-search"></i></a>
    
    <div id="font-settings-wrapper" class="dropdown pull-left">
        <a href="#" class="btn toggle-dropdown" aria-label="Toggle font settings"><i class="fa fa-font"></i>
        </a>
        <div class="dropdown-menu font-settings">
    <div class="dropdown-caret">
        <span class="caret-outer"></span>
        <span class="caret-inner"></span>
    </div>

    <div class="buttons">
        <button type="button" id="reduce-font-size" class="button size-2">A</button>
        <button type="button" id="enlarge-font-size" class="button size-2">A</button>
    </div>

    <div class="buttons font-family-list">
        <button type="button" data-font="0" class="button">Serif</button>
        <button type="button" data-font="1" class="button">Sans</button>
    </div>

    <div class="buttons color-theme-list">
        <button type="button" id="color-theme-preview-0" class="button size-3" data-theme="0">White</button>
        <button type="button" id="color-theme-preview-1" class="button size-3" data-theme="1">Sepia</button>
        <button type="button" id="color-theme-preview-2" class="button size-3" data-theme="2">Night</button>
    </div>
</div>

    </div>

    <!-- Actions Right -->
    
    <div class="dropdown pull-right">
        <a href="#" class="btn toggle-dropdown" aria-label="Toggle share dropdown"><i class="fa fa-share-alt"></i>
        </a>
        <div class="dropdown-menu font-settings dropdown-left">
            <div class="dropdown-caret">
                <span class="caret-outer"></span>
                <span class="caret-inner"></span>
            </div>
            <div class="buttons">
                <button type="button" data-sharing="twitter" class="button">Twitter</button>
                <button type="button" data-sharing="google-plus" class="button">Google</button>
                <button type="button" data-sharing="facebook" class="button">Facebook</button>
                <button type="button" data-sharing="weibo" class="button">Weibo</button>
                <button type="button" data-sharing="instapaper" class="button">Instapaper</button>
            </div>
        </div>
    </div>
    

    
    <a href="#" target="_blank" class="btn pull-right google-plus-sharing-link sharing-link" data-sharing="google-plus" aria-label="Share on Google Plus"><i class="fa fa-google-plus"></i></a>
    
    
    <a href="#" target="_blank" class="btn pull-right facebook-sharing-link sharing-link" data-sharing="facebook" aria-label="Share on Facebook"><i class="fa fa-facebook"></i></a>
    
    
    <a href="#" target="_blank" class="btn pull-right twitter-sharing-link sharing-link" data-sharing="twitter" aria-label="Share on Twitter"><i class="fa fa-twitter"></i></a>
    
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >GitBook的使用</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-gitbook_4">
                    
                        <h1 id="gitbook">安装Gitbook</h1>
<p><strong> 使用nmp安装gitbook </strong></p>
<p>在终端中输入：</p>
<pre><code>$ npm install gitbook -g
</code></pre><p>命令执行可能遇到错误，这时请尝试以管理员权限安装 node.js，在终端输入：</p>
<pre><code>$ sudo npm install gitbook -g
password: #此时输入管理员账号的密码
</code></pre><p><strong> 验证gitbook是否安装成功 </strong></p>
<pre><code>$ gitbook -V
1.5.0 #出现此句，则gitbook安装成功
</code></pre>
                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../gitbook的基本安装/安装nodejs.html" class="navigation navigation-prev " aria-label="Previous page: 安装Node.js"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../新建gitbook/README.html" class="navigation navigation-next " aria-label="Next page: 新建gitbook"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="https://cdn.mathjax.org/mathjax/2.4-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-mathjax/plugin.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"fontSettings":{"theme":null,"family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
